#include"Server.hpp"
int main()
{
    Server server;
    server.OpenPipeForRead();

    std::string message;
    while(true)
    {
        if(server.RecvPipe(&message) > 0)
        {
            std::cout<< "receive of client#:" << message << std::endl;
        }
        else 
        {
         break;
        }
    }
    std::cout<< "client quit,me too"<< std::endl;
    
    server.ClosePipe();
    return 0;
}